package com.ruoyi.product.domain;

import com.ruoyi.product.domain.ProductService;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品详情对象 product_detail
 * 
 * @author guoguoa
 * @date 2025-01-06
 */
public class ProductDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;
    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productImg;
    /** 商品名称 */
    @Excel(name = "商品简介")
    private String introduction;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private Double productPrice;

    /** 销售总量 */
    @Excel(name = "销售总量")
    private Integer salesQuantity;

    /** 商品服务 */
    @Excel(name = "分类名称")
    private Integer classId;

    /** 商品服务 */
    @Excel(name = "商品服务")
    private Integer serviceId;

    /** 精选商品 */
    @Excel(name = "精选商品")
    private Integer featuredItems;

    /** 热门推荐 */
    @Excel(name = "热门推荐")
    private Integer trendingRecommendations;

    /** 状态 */
    @Excel(name = "状态")
    private Integer del;

    /** 商品服务(一对一) */
    @Excel(name = "商品服务")
    private ProductService productService;

    /** 商品类型(一对一) */
    @Excel(name = "商品类型")
    private ProductClass productClass;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setProductPrice(Double productPrice) 
    {
        this.productPrice = productPrice;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Double getProductPrice()
    {
        return productPrice;
    }
    public void setSalesQuantity(Integer salesQuantity) 
    {
        this.salesQuantity = salesQuantity;
    }

    public Integer getSalesQuantity() 
    {
        return salesQuantity;
    }
    public void setServiceId(Integer serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getServiceId()
    {
        return serviceId;
    }
    public void setFeaturedItems(Integer featuredItems) 
    {
        this.featuredItems = featuredItems;
    }

    public Integer getFeaturedItems() 
    {
        return featuredItems;
    }
    public void setTrendingRecommendations(Integer trendingRecommendations) 
    {
        this.trendingRecommendations = trendingRecommendations;
    }

    public Integer getTrendingRecommendations() 
    {
        return trendingRecommendations;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public ProductService getProductService() {
        return productService;
    }

    public void setProductService(ProductService productService) {
        this.productService = productService;
    }

    public ProductClass getProductClass() {
        return productClass;
    }

    public void setProductClass(ProductClass productClass) {
        this.productClass = productClass;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productName", getProductName())
            .append("productImg", getProductImg())
            .append("introduction", getIntroduction())
            .append("productPrice", getProductPrice())
            .append("salesQuantity", getSalesQuantity())
            .append("classId", getClassId())
            .append("serviceId", getServiceId())
            .append("featuredItems", getFeaturedItems())
            .append("trendingRecommendations", getTrendingRecommendations())
            .append("del", getDel())
            .append("productService",getProductService())
            .append("productClass",getProductClass())
            .toString();
    }
}
